<?
//$site = site_option('site_title');
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <!-- Always force latest IE rendering engine or request Chrome Frame -->
        <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
        <title><?= get_option('site_title') ?></title>
        <!--start new-->
        <link rel="icon" type="image/ico" href="<?= base_url(APPPATH.'/views/admin/images/fav2.ico') ?>" >

        <!-- google font -->
        <!--<link href="http://fonts.googleapis.com/css?family=Aclonica:regular" rel="stylesheet" type="text/css" />-->
        <!-- styles -->
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/bootstrap.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/bootstrap-responsive.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/stilearn.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/stilearn-responsive.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/stilearn-helper.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/stilearn-icon.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/font-awesome.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/animate.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/uniform.default.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/select2.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/fullcalendar.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/bootstrap-wysihtml5.css" rel="stylesheet" />
        <link href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/Admin_css.css" media="screen" rel="stylesheet" type="text/css" />
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <!--end new-->

<!--<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>-->
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/jquery.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/jquery-ui.min.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/bootstrap.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/uniform/jquery.uniform.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/peity/jquery.peity.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/datepicker/bootstrap-datepicker.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/colorpicker/bootstrap-colorpicker.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/validate/jquery.validate.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/validate/jquery.metadata.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/responsive-tables/responsive-tables.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/select2/select2.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/knob/jquery.knob.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/flot/jquery.flot.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/flot/jquery.flot.resize.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/flot/jquery.flot.categories.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/wysihtml5/wysihtml5-0.3.0.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/responsive-tables/responsive-tables.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/wysihtml5/bootstrap-wysihtml5.js"></script>        
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/calendar/fullcalendar.js"></script> <!-- this plugin required jquery ui-->
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/mycalender.js"></script>
        <!-- required stilearn template js, for full feature-->
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/holder.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/stilearn-base.js"></script>
        <script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/adminjs.js" type="text/javascript"></script>





        <meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0">
    </head>
    <body>
<div id="popmain" style="display: none">
            <div id="popback" style="width: 100%; background-color: black; height: 100%; z-index: 999998; overflow: hidden; position: fixed; opacity: 0.79;">&nbsp;</div>            
        </div>
        <header class="header">
            <!--nav bar helper-->
            <div class="navbar-helper">
                <div class="row-fluid">
                    <!--panel site-name-->
                    <div class="span2">
                        <div class="panel-sitename">
                            <h2><a href="<?= base_url(ADMIN_FOLDER) ?>"><span class="color-teal">M</span>atgr</a></h2>
                        </div>
                    </div>
                    <!--/panel name-->

                    <div class="span7">
                        <!--panel search-->
                        <div class="panel-search">

                        </div><!--/panel search-->
                    </div>
                    <div class="span3">
                        <!--panel button ext-->
                        <div class="panel-ext">
                            <div class="btn-group">
                                <a class="btn btn-inverse btn-small dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)">
                                    <?= lang('label_shortcut') ?>
                                </a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                                    <li><a tabindex="-1" href="<?= base_url(ADMIN_FOLDER) ?>"><?= lang('label_menu_link_dashboard'); ?></a></li>
                                    <li><a tabindex="-1" target="_blank" href="<?= base_url() ?>"><?= lang('label_home'); ?></a></li>
                                    <li><a tabindex="-1" href="<?= base_url() . ADMIN_FOLDER ?>/options"><?= lang('label_menu_link_options') ?></a></li>
                                    <li><a tabindex="-1" href="<?= base_url() . ADMIN_FOLDER ?>/dashboard/my_data"><?= lang('label_profile') ?></a></li>
                                    <li class="divider"></li>
                                    <li><a tabindex="-1" href="<?= base_url() . ADMIN_FOLDER ?>/users"><?= lang('label_menu_link_users') ?></a></li>
                                    <li><a tabindex="-1" href="<?= base_url() . ADMIN_FOLDER ?>/userswallet"><?= lang('label_menu_link_userswallet') ?></a></li>
                                </ul>
                            </div>
                            <div class="btn-group user-group">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">

                                    <img class="corner-all" align="middle" src="<?= display_img(AVATAR_PATH, session_date('admin_FILE'), $default = 'avatar.png') ?>" title="<?= session_date('admin_NAME') ?>" alt="<?= session_date('admin_NAME') ?>"> <!--this for display on PC device-->
                                    <button class="btn btn-small btn-inverse">John Doe</button> <!--this for display on tablet and phone device-->
                                </a>
                                <ul class="dropdown-menu dropdown-user" role="menu" aria-labelledby="dLabel">
                                    <li>
                                        <div class="media">
                                            <a class="pull-left" href="javascript:void(0)">
                                                <img class="img-circle" src="<?= display_img(AVATAR_PATH, session_date('admin_FILE'), $default = 'avatar.png') ?>" title="profile" alt="profile">
                                            </a>
                                            <div class="media-body description">
                                                <p><strong><?= session_date('admin_NAME') ?></strong></p>
                                                <p class="muted"><?= session_date('admin_EMAIL') ?></p>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="dropdown-footer">
                                        <div>
                                            <a class="btn btn-small pull-right" href="<?= base_url() . ADMIN_FOLDER ?>/dashboard/logout"><?= lang('lable_profile_logout') ?></a>     
                                            <a class="btn btn-small" href="<?= base_url() . ADMIN_FOLDER ?>/dashboard/my_data"><?= lang('label_profile') ?></a>&nbsp;&nbsp;&nbsp;
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div><!--panel button ext-->
                    </div>
                </div>
            </div><!--/nav bar helper-->
        </header>

        <? $this->view('admin/helper/sidebar'); ?>

        <section class="section">
            <div class="row-fluid">
                <div class="span11">
                    <!-- content -->
                    <div class="content">
                        <!-- content-header -->
                        <div class="content-header">

                            <h2><i class="icofont-home"></i> <small><?= str_replace('%s', $this->session_admin_data['admin_name'], lang('label_welcome_to')); ?></small> <?= lang('label_menu_link_dashboard') ?> </h2>
                        </div><!-- /content-header -->

                        <!-- content-breadcrumb -->
                        <div class="content-breadcrumb">

                            <!--breadcrumb-->
                            <?= admin_Crumb() ?>
                            <!--/breadcrumb-->
                        </div><!-- /content-breadcrumb -->

                        <!-- content-body -->
                        <div class="content-body">
                            <!-- dashboar -->
                            <?php
                            $this->themes->display_message();
                            if (!empty($file_contant)) {
                                $this->view('admin/' . $file_contant);
                            }
                            ?>

                            <!--/dashboar-->
                        </div><!--/content-body -->
                    </div><!-- /content -->
                </div>  
            </div>
        </section>

        <? $this->view('admin/helper/footer'); ?>
        <!-- javascript
         ================================================== -->


        <style>
            .ui-autocomplete {
                max-height: 210px;
                overflow-y: auto;

                width: 30%!important;
                /*   prevent horizontal scrollbar */
                overflow-x: hidden;
                border-radius: 0px;
            }
            .ui-autocomplete  li a{
                display: block;
                background-color: #cccccc;
                padding: 5px;
                border-radius: 0px;
                color:#000;
            }
            .ui-autocomplete  li a:hover{
                background: none;
                display: block;
                border-radius: 0px;
                padding: 5px;
                border: none;
                background-color: #FFF;
            }
            /* IE 6 doesn't support max-height
             * we use height instead, but this forces the menu to always be this tall
            */
            * html .ui-autocomplete {
                height: 200px;
                width: 400px!important;
            }
        </style>

    </body>
</html>